package com.sw.zk;

import com.sw.zk.zk.ZKServerConfig;
import org.I0Itec.zkclient.ZkClient;
import org.junit.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DyDBConfigApplicaiton {
    public static void main(String[] args) {
        String dburl1="jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf8&useSSL=false";
        ZkClient zkClient= ZKServerConfig.zkClient;
        ZKServerConfig.setDataBaseConfig(zkClient,dburl1);
        SpringApplication.run(DyDBConfigApplicaiton.class);


    }



}
